package cn.jinjie.day05.test8;

import java.math.BigDecimal;

public class Demo1 {
    public static void main(String[] args) {
        System.out.println(0.3 + 0.6);
        BigDecimal b1 = new BigDecimal("0.3");
        BigDecimal b2 = new BigDecimal("0.6");
        BigDecimal b3 = b1.add(b2);
        System.out.println(b3);

        BigDecimal b4 = b1.multiply(b2);
        System.out.println(b4);
        // System.out.println(0.3 * 0.6);
        BigDecimal b5 = b2.divide(b1);
        System.out.println(b5);


    }
}
